﻿using FluentNH_DO.Entities;
using FluentNHibernate.Mapping;

namespace FluentNH_DAL.Mappings
{
    public class ContactInfoMap:ClassMap<ContactInfo>
    {
        public ContactInfoMap()
        {
            Table("Test_Info");
            Id(x => x.Id);
            References(x => x.Contact);
            References(x => x.ContactInfoType);
            Map(x => x.Data).Not.Nullable().Length(50);
        }
    }
}
